草庐IT

firebase - flutter NoSuchMethodError

全部标签

java - 我在哪里可以获得 Firebase Admin 的 "serviceAccountCredentials.json"?

Here据说我需要在java上设置Firebase:FirebaseOptionsoptions=newFirebaseOptions.Builder().setDatabaseUrl("https://databaseName.firebaseio.com").setServiceAccount(newFileInputStream("path/to/serviceAccountCredentials.json")).build();FirebaseApp.initializeApp(options);但是我在哪里可以获得serviceAccountCredentials.json?

错误“在节点中使用firebase时无法读取null的属性'uid'?

我想读一次我的firebase数据以获取电报机器人,但是我得到了这个错误:D:\Projects2016\Web\BOT\node-t*m-bot-api-sedric-bot\src\index.js:39varuserId=firebase.auth().currentUser.uid;^TypeError:Cannotreadproperty'uid'ofnull我从Google教程中使用了此功能,这是我的功能:functionreadonce(){varuserId=firebase.auth().currentUser.uid;returnfirebase.database().re

javascript - 将数据从文本框提交到 Firebase 不起作用

我在HTML中有这个文本框:Submit我的名为writeTo.js的js文件包含以下代码:varurl="https://blog-posts.firebaseio.com/";varfirebaseRef=newFirebase(url);functionfunct1(){vartitle=$('#post-title').val();varpost=$('#post-content').val();vardate=Date();firebaseRef.set({Title:+title,Content:+post,Date:+Date()});}submit.onclick=fu

javascript - 将数据从文本框提交到 Firebase 不起作用

我在HTML中有这个文本框:Submit我的名为writeTo.js的js文件包含以下代码:varurl="https://blog-posts.firebaseio.com/";varfirebaseRef=newFirebase(url);functionfunct1(){vartitle=$('#post-title').val();varpost=$('#post-content').val();vardate=Date();firebaseRef.set({Title:+title,Content:+post,Date:+Date()});}submit.onclick=fu

html - Firebase 托管 URL 需要 .html 才能显示页面

我正尝试在GoogleFirebase上托管一个网站。index.html显示为(e.x.)app.firebase.com,但是当我想访问像login.html这样的页面时,我需要输入app.firebase.com/login.html,只是app.fire-base.com/login不起作用。我如何为目录(公共(public))中的每个.html文件实现此目的,是否需要配置firebase.json?我阅读了文档,但找不到任何信息。这是我的.json{"hosting":{"public":"public","signin":"/signin.html"}}

html - Firebase 托管 URL 需要 .html 才能显示页面

我正尝试在GoogleFirebase上托管一个网站。index.html显示为(e.x.)app.firebase.com,但是当我想访问像login.html这样的页面时,我需要输入app.firebase.com/login.html,只是app.fire-base.com/login不起作用。我如何为目录(公共(public))中的每个.html文件实现此目的,是否需要配置firebase.json?我阅读了文档,但找不到任何信息。这是我的.json{"hosting":{"public":"public","signin":"/signin.html"}}

javascript - 在 html img 标签中显示来自 firebase 存储的图像

我试图将来自firebase的图像显示到htmlimg标签中,但无法检索图像。Javascript代码:varstorageRef=firebase.storage().ref();varspaceRef=storageRef.child('images/photo_1.png');varpath=spaceRef.fullPath;vargsReference=storage.refFromURL('gs://test.appspot.com')storageRef.child('images/photo_1.png').getDownloadURL().then(function(

javascript - 在 html img 标签中显示来自 firebase 存储的图像

我试图将来自firebase的图像显示到htmlimg标签中,但无法检索图像。Javascript代码:varstorageRef=firebase.storage().ref();varspaceRef=storageRef.child('images/photo_1.png');varpath=spaceRef.fullPath;vargsReference=storage.refFromURL('gs://test.appspot.com')storageRef.child('images/photo_1.png').getDownloadURL().then(function(

html - Firebase 没有运行 index.html 文件

我是一名新手程序员,正在学习Firebase教程。我已经完成了教程的步骤1-5(https://codelabs.developers.google.com/codelabs/firebase-web/#5)。我已将“将Firebase添加到您的Web应用程序”js代码添加到html文件,并设置了FirebaseCLI。但是,当我运行firebase服务器时,除了不显示index.html文件中的代码之外,一切似乎都正常。我在正确的目录中,我的控制台显示“服务器监听于:http://localhost:5000”。但是,在localhost5000,它显示了一个通用的“欢迎使用Fire

html - Firebase 没有运行 index.html 文件

我是一名新手程序员,正在学习Firebase教程。我已经完成了教程的步骤1-5(https://codelabs.developers.google.com/codelabs/firebase-web/#5)。我已将“将Firebase添加到您的Web应用程序”js代码添加到html文件,并设置了FirebaseCLI。但是,当我运行firebase服务器时,除了不显示index.html文件中的代码之外,一切似乎都正常。我在正确的目录中,我的控制台显示“服务器监听于:http://localhost:5000”。但是,在localhost5000,它显示了一个通用的“欢迎使用Fire